﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Hvað á barnið að drekka mikið?
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="navigation">
    <% Html.RenderPartial("IndexNavigation"); %>
</div>
<div id="content">
    <script language="JavaScript" type="text/javascript">

        function milkcalc() {
            a = document.form1.a.value;
            b = 25 / a;
            c = 19 / a;
            d = 30 / a;
            e = 750 / a;
            f = 570 / a;
            g = 900 / a;
            document.form1.total1.value = b
            document.form1.total2.value = c
            document.form1.total3.value = d
            document.form1.total4.value = e
            document.form1.total5.value = f
            document.form1.total6.value = g
        }
        </script>
        <form name="form1" id="form1">
              <table width="525" border="0" cellpadding="3" cellspacing="0" bordercolor="#9900CC">
                <tbody><tr> 
                  <td><table width="100%" border="0" cellpadding="1" cellspacing="1">
                      <tbody><tr align="center"> 
                        <td colspan="2"><span class="emphasis"><font size="4">Reiknivél fyrir brjóstagjöf.  
                          </font></span><font size="4"><b><br />
                          </b><span class="small">
                        </span></font></td>
                      </tr>
                      <tr> 
                        <td colspan="2"><hr size="1" noshade="noshade"></td>
                      </tr>
                      <tr class="small"> 
                        <td align="right">&nbsp;&nbsp;Hvað gefur þú oft á brjóst á dag? 
                          <input size="5" name="a" /></td>
                        <td align="right"> <input name="button" type="button" onclick="milkcalc()" value="Reikna"> 
                        &nbsp;&nbsp; <input name="reset" type="reset" value="Endursetja"></td>
                      </tr>
                      <tr align="right" class="small"> 
                        <td colspan="2"> <hr size="1" noshade="noshade"></td>
                    </tr>
                      <tr align="right" class="small"> 
                        <td>Meðalgjöf í únsum 
                          <input maxlength="40" size="5" name="total1"></td>
                        <td>&nbsp;&nbsp;&nbsp;Meðalgjöf í ml 
                          <input maxlength="40" size="5" name="total4"></td>
                    </tr>
                      <tr align="right" class="small"> 
                        <td>Lágmark, únsur 
                          <input maxlength="40" size="5" name="total2"></td>
                        <td>Lágmark, ml 
                          <input maxlength="40" size="5" name="total5"></td>
                    </tr>
                      <tr align="right" class="small"> 
                        <td>Hámark, únsur 
                          <input maxlength="40" size="5" name="total3"></td>
                        <td>Hámark, ml 
                          <input maxlength="40" size="5" name="total6"></td>
                    </tr>
                      <tr align="left"> 
                        <td colspan="2"><hr size="1" noshade="noshade"> 
                          <span class="emphasis">Punktar:</span> 
                          <ol>
                            <li class="smallest">Börn sem eru yngri en 1 mánaða 
                              gömul og börn sem eru byrjuð að innbyrða fasta 
                              fæðu, þurfa ekki jafn mikið af mjólk.</li>
                            <li class="smallest">Þessi reiknivél reiknar með að barnið 
                              sé að innbyrða frá 19-30 únsur daglega. Í millilítrum eru það 
                              570-900 ml á dag.</li>
                        </ol></td>
                    </tr>
                  </tbody></table></td>
                </tr>
              </tbody></table>
      </form>
      <br /><br />
      <table width="100%" border="1" cellspacing="0" cellpadding="3">
              <tbody><tr align="center" class="tiny"> 
                <td colspan="5"><b>Samantekt gagna</b></td>
              </tr>
              <tr class="tiny"> 
                <td rowspan="2">Aldur barns</td>
                <td colspan="3" align="center">Meðal inntaka brjóstamjólkur</td>
                <td rowspan="2" align="center">Tilvísun</td>
              </tr>
              <tr class="tiny"> 
                <td align="center">g</td>
                <td align="center">ml</td>
                <td align="center">oz</td>
              </tr>
              <tr class="tiny"> 
                <td>5 daga</td>
                <td>498 +/- 129 g</td>
                <td><font color="#999999">483 ml</font></td>
                <td><font color="#999999">16 oz</font></td>
                <td>Neville 1988</td>
              </tr>
              <tr class="tiny"> 
                <td>1 mán</td>
                <td>728 g</td>
                <td><font color="#999999">706 ml</font></td>
                <td><font color="#999999">24 oz</font></td>
                <td>Salazar 2000</td>
              </tr>
              <tr class="tiny"> 
                <td>1 mán</td>
                <td>--</td>
                <td>673 ml</td>
                <td><font color="#999999"><i>23 oz</i></font></td>
                <td>Dewey 1983</td>
              </tr>
              <tr class="tiny"> 
                <td>1 mán</td>
                <td>708 +/- 54.7 g</td>
                <td><font color="#999999"><i>687 ml</i></font></td>
                <td><font color="#999999"><i>23 oz</i></font></td>
                <td>Cox 1996</td>
              </tr>
              <tr class="tiny"> 
                <td>1-6 mán</td>
                <td>453.6+/-201 g á brjóst</td>
                <td><font color="#999999"><i>440 ml x2 = 880 ml</i></font></td>
                <td><font color="#999999"><i>30 oz</i></font></td>
                <td>Kent 1999</td>
              </tr>
              <tr class="tiny"> 
                <td>3 mán</td>
                <td>818 g</td>
                <td><font color="#999999"><i>793 ml</i></font></td>
                <td><font color="#999999"><i> 27 oz</i></font></td>
                <td>Dewey 1991</td>
              </tr>
              <tr class="tiny"> 
                <td>3-5 mán</td>
                <td>753 +/- 89 g</td>
                <td><font color="#999999"><i>730 ml</i></font></td>
                <td><font color="#999999"><i>25 oz</i></font></td>
                <td>Neville 1988</td>
              </tr>
              <tr class="tiny"> 
                <td>6 mán</td>
                <td> --</td>
                <td>896 ml</td>
                <td><font color="#999999"><i>30 oz</i></font></td>
                <td>Dewey 1983</td>
              </tr>
              <tr class="tiny"> 
                <td>6 mán</td>
                <td>742 +/- 79.4 g</td>
                <td><i><font color="#999999">720 ml</font></i></td>
                <td><font color="#999999"><i>24 oz</i></font></td>
                <td>Cox 1996</td>
              </tr>
              <tr class="tiny"> 
                <td>7 mán</td>
                <td>--</td>
                <td>875 ml (93% af heildar orkuinntöku)</td>
                <td><font color="#999999"><i>30 oz</i></font></td>
                <td>Dewey 1984</td>
              </tr>
              <tr class="tiny"> 
                <td>11-16 mán</td>
                <td>-- </td>
                <td>550 ml (50% af heildar orkuinntöku)</td>
                <td><font color="#999999"><i>19 oz</i></font></td>
                <td>Dewey 1984</td>
              </tr>
              <tr class="tiny"> 
                <td>12-17 mán</td>
                <td>563 g</td>
                <td><font color="#999999"><i>546 ml</i></font></td>
                <td><font color="#999999"><i>18 oz</i></font></td>
                <td>Brown 1982</td>
              </tr>
              <tr class="tiny"> 
                <td>12-23 mán</td>
                <td>548 g</td>
                <td><font color="#999999"><i>532 ml</i></font></td>
                <td><font color="#999999"><i>18 oz</i></font></td>
                <td>Persson 1998</td>
              </tr>
              <tr class="tiny"> 
                <td>15 mán</td>
                <td>208.0+/-56.7 g á brjóst</td>
                <td><font color="#999999"><i>202 ml x2 = 404 ml</i></font></td>
                <td><font color="#999999"><i>14 oz</i></font></td>
                <td>Kent 1999</td>
              </tr>
              <tr class="tiny"> 
                <td>18-23 mán</td>
                <td>501 g</td>
                <td><font color="#999999"><i>486 ml</i></font></td>
                <td><font color="#999999"><i>16 oz</i></font></td>
                <td>Brown 1982</td>
              </tr>
              <tr class="tiny"> 
                <td>&gt;24 mán</td>
                <td>368 g</td>
                <td><font color="#999999"><i>357 ml</i></font></td>
                <td><font color="#999999"><i>12 oz</i></font></td>
                <td>Brown 1982</td>
              </tr>
              <tr class="tiny"> 
                <td>24-36 mán</td>
                <td>312 g</td>
                <td><font color="#999999"><i>303 ml</i></font></td>
                <td><font color="#999999"><i>10 oz</i></font></td>
                <td>Persson 1998</td>
              </tr>
            </tbody></table>
</div>
</asp:Content>





